/*
 ============================================================================
 Name		: RtpBtExmDocument.cpp
 Author	  : william
 Copyright   : free software
 Description : CRtpBtExmDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "RtpBtExmAppUi.h"
#include "RtpBtExmDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CRtpBtExmDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CRtpBtExmDocument* CRtpBtExmDocument::NewL(CEikApplication& aApp)
    {
    CRtpBtExmDocument* self = NewLC(aApp);
    CleanupStack::Pop(self);
    return self;
    }

// -----------------------------------------------------------------------------
// CRtpBtExmDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CRtpBtExmDocument* CRtpBtExmDocument::NewLC(CEikApplication& aApp)
    {
    CRtpBtExmDocument* self = new (ELeave) CRtpBtExmDocument(aApp);

    CleanupStack::PushL(self);
    self->ConstructL();
    return self;
    }

// -----------------------------------------------------------------------------
// CRtpBtExmDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CRtpBtExmDocument::ConstructL()
    {
    // No implementation required
    }

// -----------------------------------------------------------------------------
// CRtpBtExmDocument::CRtpBtExmDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CRtpBtExmDocument::CRtpBtExmDocument(CEikApplication& aApp) :
    CAknDocument(aApp)
    {
    // No implementation required
    }

// ---------------------------------------------------------------------------
// CRtpBtExmDocument::~CRtpBtExmDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CRtpBtExmDocument::~CRtpBtExmDocument()
    {
    // No implementation required
    }

// ---------------------------------------------------------------------------
// CRtpBtExmDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CRtpBtExmDocument::CreateAppUiL()
    {
    // Create the application user interface, and return a pointer to it;
    // the framework takes ownership of this object
    return new (ELeave) CRtpBtExmAppUi;
    }

// End of File
